//
//  ShopListHeaderView.h
//  sensen_ios
//
//  Created by pro on 16/2/23.
//  Copyright © 2016年 pro. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    typeNone,
    typeSort,
    typeFilter,
} ZKHeaderType;

@protocol ShopListHeadViewDelegate <NSObject>

// 选中
- (void)headerViewDidSelected:(NSInteger)tag;
- (void)headerSortViewDidChoose:(NSInteger)tag;
- (void)headerFilterViewDidChooseRange:(NSString *)range;


@end

/*
 商品列表头视图，用于筛选和排序
 */
@interface ShopListHeaderView : UICollectionReusableView

@property (nonatomic ,copy) NSString *firstViewTitle; // 第一个视图的标题
@property (nonatomic ,assign) BOOL secondTitleUse;
@property (nonatomic ,assign) BOOL thirdTitleUse;

@property (nonatomic, assign) id<ShopListHeadViewDelegate> delegate;

@property (nonatomic ,assign) ZKHeaderType type; 
- (void)tapView:(ZKHeaderType)type;
@end
